package com.bawei.reflection;

import android.util.Log;

public class Student extends Person {
    //变量
    private String username;
    private int age;

    public Student() {

    }

    private Student(String username, int age) {
        this.username = username;
        this.age = age;
    }

    public Student(String username) {
        this.username = username;
    }

    //无参方法
    private void method1(){
        Log.d("Student", "print: "+username+age);
    }
    //有参有返回值方法
    public String method2(String school){
        Log.d("Student", "print: "+school+username+age);
        return school+username+age;
    }




}
